package main

import "fmt"

func main() {
	a := 10
	chvalue(a)
	fmt.Println(a)
	Pointer(&a)
	fmt.Println(a)

}

func Pointer(a *int) {
	*a += 1
}

func chvalue(a int) int {
	a += 1
	return a
}
